/**
 *
 * 版权所有 © cybersky.com
 *
 */
package cn.cybertron.primus.report.data;

import java.io.Serializable;

import cn.cybertron.primus.report.entity.ReportCache;
import cn.cybertron.primus.report.entity.ReportCache.CacheType;

/**
 * 只有简单属性的中间表类
 * @author: ch
 */
public class ReportDataCache implements Serializable {

	private static final long serialVersionUID = 4988868610350885558L;

	/**
	 * 中间表UUID
	 */
	protected String uuid;
	
	/**
	 * 中间表标题
	 */
	protected String title;
	
	/**
	 * 中间表描述
	 */
	protected String description;
	
	/**
	 * 中间表类型
	 */
	protected CacheType type = CacheType.source;

	/**
	 * 中间表查询时间间隔:单位为分钟
	 */
	protected int intervalTime = 0;
	
	/**
	 * 是否启用：中间表是否写入数据
	 */
	protected boolean enable = true;

	public ReportDataCache() {

	}

	public ReportDataCache(ReportCache cache) {
		this.setUuid(cache.getUuid());
		this.setTitle(cache.getTitle());
		this.setDescription(cache.getDescription());
		this.setType(cache.getType());
		this.setIntervalTime(cache.getIntervalTime());
		this.setEnable(cache.isEnable());
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public CacheType getType() {
		return type;
	}

	public void setType(CacheType type) {
		this.type = type;
	}

	public int getIntervalTime() {
		return intervalTime;
	}

	public void setIntervalTime(int intervalTime) {
		this.intervalTime = intervalTime;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

}
